/*
 * @(#)projectServiceImpl.java 2013-4-10 ����01:36:55 Order
 */
package com.dingtalk.dingbotmgr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.dingtalk.dingbotmgr.dao.BaseDao;
import com.dingtalk.dingbotmgr.dao.ProjectDao;
import com.dingtalk.dingbotmgr.model.Company;
import com.dingtalk.dingbotmgr.model.Project;
import com.dingtalk.dingbotmgr.service.ProjectService;
import org.springframework.stereotype.Component;

/**
 * projectServiceImpl
 *
 * @author wang
 * @version 1.0
 */
@Component("projectService")
public class ProjectServiceImpl extends BaseServiceImpl<Project> implements ProjectService {

    @Resource(name = "projectDao")
    private ProjectDao projectDao;

    @Override
    protected BaseDao<Project> getBaseDao() {
        return projectDao;
    }

    @Override
    public List<Project> listByCompany(Company company) {
        return projectDao.listByCompany(company);
    }
}
